const express=require('express');
const db=require('../utils/db.js');

const router=express.Router();

router.post('/editstat',(req,res)=>{
	const sql=`UPDATE orderlist set status='${req.body.status}' where id='${req.body.orderid}';`
	db.query(sql,(err,data)=>{
		if(err){
			res.send({msg:err})
		}else{
			res.send({msg:'支付'})
		}
	})
})


module.exports=router;